﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.TR.Bussiness;
using ZX.TR.Library;

namespace ZX.WebApp.TR
{
    public partial class QuestionnaireSumup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                QuestionnaireId = this.Request.QueryString["id"];
                BTrQuestionnaireSubject ts = new BTrQuestionnaireSubject();
                V_TrQuestionnaire tq = ts.GetAllQuestionnaireInfoById(new Guid(QuestionnaireId));
                this.txtName.Text = tq.QuestionnaireName;
                this.txtBm.Text = tq.DeptName;
                this.txtSTime.Text = tq.QStartTime.ToString();
                this.txtETime.Text = tq.QEndTime.ToString();
                this.txtSumup.Text = tq.QSumup;
            }
        }
        public string QuestionnaireId
        {
            get;
            set;
        }
    }
}